
const useInfo = JSON.parse(localStorage.getItem('userInfo') || '{ }') || { useInfo: {} }
const state = {
  useInfo
}
const mutations = {
  // 更新用户信息
  updateUser (state, user) {
    state.useInfo.token = user.token
    state.useInfo.avator = user.avator
  }
}
const actions = {}
const getters = {}
export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
